tar xf ${DOWNLOADDIR}/expect5.45.4.tar.gz -C ${BUILDDIR}
pushd ${BUILDDIR}/expect5.45.4
    patch -Np1 -i ${DOWNLOADDIR}/expect-5.45.4-gcc15-1.patch
    patch -Np1 -i ${DOWNLOADDIR}/0001-enable-cross-compilation.patch
    autoreconf -ifv
	./configure --prefix=/usr --libdir=/usr/lib64 \
	            --build=${CROSS_HOST} --host=${CROSS_TARGET} \
	            --with-tcl=${SYSDIR}/sysroot/usr/lib64 \
	            --enable-shared
	make ${JOBS}
	make TCLSH_PROG=/usr/bin/tclsh DESTDIR=${SYSDIR}/sysroot install
	ln -svf expect5.45.4/libexpect5.45.4.so ${SYSDIR}/sysroot/usr/lib64
popd
